<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1>测试文件</h1>
</body>

</html>
<script>
    // let http = new XMLHttpRequest();
    // http.open("get", "http://10.35.164.168:8080/test");
    // http.send();
    // http.onreadystatechange = function(error, data) {
    //     if (readyState === 4) {
    //         if (error) {
    //             console.log(error)
    //         } else {
    //             consolelog(data)
    //         }
    //         console.log(http.responseText)
    //     }


    // }
    // 解决同源侧略
    let script = document.createElement("script");
    script.setAttribute("src", "http://10.35.164.168:8080/test");
    let body = document.querySelector("body");
    body.appendChild(script);
</script>